package com.ps.feign;

import com.ps.feign.impl.ReviewQuestionFeignImpl;
import com.ps.property.PageBean;
import com.ps.property.ReviewQuestionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author gt
 * @类说明：提问审核逻辑层
 * @date 2020/10/26 10:30
 */
@FeignClient(value = "reviewQuestions-provide",fallback = ReviewQuestionFeignImpl.class)
public interface ReviewQuestionFeign {
    @PostMapping("/reviewQuestionAdd-provide")
    int reviewQuestionAdd(ReviewQuestionVo reviewQuestionVo);

    @GetMapping("/reviewQuestionQuery-provide")
    PageBean<ReviewQuestionVo> reviewQuestionQuery(@RequestParam("currentPage") int currentPage, @RequestParam("pageSize") int pageSize);

    @PostMapping("/reviewQuestionUpdate-provide")
    int reviewQuestionUpdate(ReviewQuestionVo reviewQuestionVo);

    @GetMapping("/reviewQuestionQueryById-provide/{reviewQuestionId}")
    ReviewQuestionVo reviewQuestionQueryById(@PathVariable int reviewQuestionId);
}
